<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--
 Main index layout file

 Copyright MONKeLABS 2011

 File History

 Version		Date Modified		Author		Description of changes
 =====================================================================
 1.00			06/04/2011			Rob Davis	File Creation

-->
<?php
	require_once("engine/engine.php");
?>
<html>
    <head>
    	<title>MONKELABS</title>
        <script language="javascript" src="/javascript/browser.js"></script>
        <link rel="stylesheet" type="text/css" href="/css/main.css" />
        <script language="javascript" src="/javascript/ga.js"></script>
        <link rel="stylesheet" type="text/css" href="/css/content.css" />
        <link rel="stylesheet" type="text/css" href="/css/errors.css" />
    </head>
    <body style="background:url(/images/background.jpg) no-repeat center center; height:100%;" marginheight="0" marginwidth="0" bottommargin="0" leftmargin="0" rightmargin="0" topmargin="0" onload="checkBrowser()">

    	<!-- main layout table -->
        <?php
			// initialize the main menu
			
			$displayEngine = new engine();
		?>
        <div id="ieerror"></div>
        <div id="wrap" style="text-align:center">
                <table cellpadding="0" cellspacing="0" style="width:100%; text-align:center;">
                    <tr>
                        <!-- header row -->
                        <td style="width:100%; text-align:center;">
                            <div class="header" style="text-align:center;">
                            	<?php
									// build the main menu
									
									echo $displayEngine->ParseTemplate(TEMPLATE_DIRECTORY . "/master_header.xml", TEMPLATE_DIRECTORY . "/master_header.xsl");
								
								?>
                            </div>
                        </td>
                   </tr>
                        <!-- body row -->
                   <tr>
                        <td>
                        	<div style="text-align:center;">
                            	<div align="center">
								<?php
                                    
                                    // output the content if there is any to be output
                                    
                                    echo $displayEngine->getContent();
                                ?>
                                </div>
                            </div>
                            <div style="height:30px;"></div>
                        </td>
                    </tr>
                </table>   
        </div>
        <!-- the footer -->
            <div class="footer" id="footer" style="text-align:center; width:100%;">
                <table cellpadding="0" cellspacing="0" style="text-align:center; width:100%;">
                	<tr>
                    	<td style="text-align:left; width:80px;">
                        	<img style="border:none; margin-top:-72px; text-align:left; margin-left:15px;" src="/images/FooterLogo.png" />
                        </td>
                    	<?php
							// build the footer
							
							echo $displayEngine->ParseTemplate(TEMPLATE_DIRECTORY . "/master_footer.xml", TEMPLATE_DIRECTORY . "/master_footer.xsl");
						?>
                    </tr>
                </table>
            </div>
    </body>
</html>